package com.itheima.String;

import com.itheima.domain.Student;

import java.util.Scanner;

public class Demo01Split {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        System.out.println("请输入:");
        String s = sc.nextLine();
        String[] str = s.split(",");
        Student student=new Student(str[0],str[1]);
        String name = student.getName();
        String age = student.getAge();
        System.out.println(name+"..."+age);
    }
}
